function beautifyarea(table,arr){
    var tr;
    var td;
    for(var i=0;i<arr.length;i++){
        tr=dom("TR");
        for(var j=0;j<arr[0].length;j++){
            var name=arr[i][j];
            tr.appendChild(dom("TD",{"bgcolor":"black"},dom("IMG",{"src":"Images/w.png","id":("area"+i+"_"+j),"name":(name+"")})));
        }
        table.appendChild(tr);
    }
}